AddMany Method

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Adds new values to be associated with a key. If duplicate values are permitted, this method always adds new key-value pairs to the dictionary.

If duplicate values are not permitted, and key already has a value equal to one of values associated with it, then that value is replaced, and the number of values associate with key is unchanged.

Namespace: Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax

C#
public virtual void AddMany(
	TKey key,
	IEnumerable<TValue> values
)
Visual Basic (Declaration)
Public Overridable Sub AddMany ( _
	key As TKey, _
	values As IEnumerable(Of TValue) _
)
Visual C++
public:
virtual void AddMany (
	TKey key, 
	IEnumerable<TValue>^ values
)

Parameters

key
TKey
The key to associate with.
values
IEnumerable<(Of <TValue>)>
A collection of values to associate with key.

See Also